import axios from "../utils/request";
const HE_FENG_KEY = process.env.VUE_APP_HE_FENG_KEY;
//const HE_FENG_KEY="c692a2db25bc4b69bd1c34a575cb79b9";
export default {
  /**
   * 获取天气信息
   * @param {*} data 
   * @returns 
   */
  async getWeatherInfo(data) {
    let result = await axios.get("/qryWeather?key="+HE_FENG_KEY, {
      params: {
        ...data
      }
    });
    console.log(result)
    return result;
  },
}